<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<script
	src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.min.js"></script>
<script
	src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0rc1/angular-route.min.js"></script>
<script src="js/authentication.js"></script>
<link rel="stylesheet"
	href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
</head>
<body ng-app="authentication" ng-controller="loginController">
	<form name="loginForm">
		
		<div class="col-sm-8" style="float: center">
		<div ng-class='{error: isError, warning: isWarning}'>{{messageText}}</div>
			<table><tr><td>
			<span class="form-group"> User Name : </span></td><td>
			<div class="form-group" ng-class="{'has-error': loginForm.username.$invalid}">
			
				<input class="form-control" name="userName" type="text"
					placeholder="Username" required ng-model="session.username" /> 
					<span class="help-block" ng-show="loginForm.username.$error.required">Required</span>
			</div>
			</td></tr><tr><td>
			<span class="form-group"> Password : </span> </td><td>
			<div class="form-group" ng-class="{'has-error': loginForm.password.$invalid}">
			
				<input class="form-control" name="password" type="password"
					placeholder="Password" required ng-model="session.password" /> <span
					class="help-block" ng-show="loginForm.password.$error.required">Required</span>
			</div></td></tr>
			</table>
			<br>
			<div class="form-group">
				<button type="submit" class="btn btn-primary pull-left"
					value="Login" title="Login" ng-disabled="!loginForm.$valid"
					ng-click="authenticateUser()">
					<span>Login</span>
				</button>
			</div>
		</div>
		<br>
		<div class="form-group">
				<span>If you are not registered, Please Click Signup with us</span>
				<input type="submit" class="btn btn-primary pull-left"
					value="Signup" title="Login" ng-disabled="!loginForm.$valid"
					ng-click="authenticateUser()">
					<span>Login</span>
				</input>
		</div>
	</form>
</body>
</html>